/**
  ******************************************************************************
  * @file    app_boot.c
  * @author  Sherlock
  * @version V0.1
  * @date    11/22/2023
  * @brief   program boot up fine
  ******************************************************************************
  * @copy
  *
  * <h2><center>&copy; COPYRIGHT 2010 Feirui</center></h2>
  */ 


/**
  * @brief  INCLUDE FILES.
  */
#ifndef	APP_GLOBALS_BOOT
#define	APP_GLOBALS_BOOT
#include <includes.h>


int main(void)
{
#ifdef EnableCheckOS_errOpt
    uint8_t  os_err;
#endif
    
    
    /***************************Check Reboot Solution***********/
    
    /***************************System Start********************/
    
    /***************************UCOS-II*************************/
    OSInit();                                                   /* Initialize "uC/OS-II".     */

#ifdef EnableCheckOS_errOpt    
    os_err = 
#endif
    OSTaskCreateExt((void (*)(void *)) App_Task_START,
                    (void          * ) 0,
                    (OS_STK        * )&App_TaskStk_START[APP_TASK_STK_SIZE_START - 1],
                    (INT8U           ) APP_TASK_PRIO_START,
                    (INT16U          ) APP_TASK_PRIO_START,
                    (OS_STK        * )&App_TaskStk_START[0],
                    (INT32U          ) APP_TASK_STK_SIZE_START,
                    (void          * ) 0,
                    (INT16U          )(OS_TASK_OPT_STK_CLR | OS_TASK_OPT_STK_CHK));

#if (OS_TASK_NAME_EN > 0u)
    OSTaskNameSet(APP_TASK_PRIO_START, (uint8_t *)APP_TASK_NAME_START, &os_err);
#endif
    
    OSStart();                                                  /* Start multitasking in UCOS-II*/
    
    return (0);
}



/*$PAGE*/#endif	/* APP_GLOBALS_BOOT */